*More examples of F tests in action bcuse bodyfat, clear gen lnbfat=ln(Brozek) gen lnwgt=ln(wgt) gen lnhgt = ln(hgt) reg lnbfat lnwgt lnhgt *note SSR: 35.41776 *impose restriction: lnhgt coeff = -2* lnwgt coeff gen lnz = lnwgt-2*lnhgt reg lnbfat lnz *note new SSR: 40.1050098 *note increase in SSR di 40.1050098- 35.41776 *note percent increase in SSR di (40.1050098- 35.41776)/35.41776 *we'll come back to this *run the test t by allowing for differences *t test 1: add lnwgt reg lnbfat lnz lnwgt *t = 5.73 ... reject reject reject *t test 2: add lnhgt reg lnbfat lnz lnhgt *t = 5.73 ... reject reject reject *or we could run an F test of the restriction *impose restriction: lnhgt coeff = -2* lnwgt coeff reg lnbfat lnwgt lnhgt test lnhgt = -2*lnwgt di sqrt(32.82) *same a t stats! so for a single restriction, F = t^2 *recall % change in SSRs di (40.1050098- 35.41776)/35.41776 *%change in dofs = 1/(n-k-1) di 1/248 *calculate the elasticity di .1323419/.00403226 *Bingo! The F stat! *other F tests *test nulll hypothesis that the tru parm value for one of the RHS vars is 0 *could use t of F test reg Brozek wgt hgt BMI knee ankle test (wgt=0) test wgt di sqrt(.61) * t = sqrt(F); same p values *test jont Null Hypothesis that true parms for all RHS vars are 0 test wgt hgt BMI knee ankle *lokk at the reg results reg Brozek wgt hgt BMI knee ankle * that's F(5, 246)... so the F stat for the regression is ... *SSR w/ no RHS vars = SST = 15079.0166 * so if drop all RHS vars, increase in SSRs di (15079.0166-6822.1265) *and %increase is di (15079.0166-6822.1265)/6822.1265 *percent change in dofs di 5/246 *elasticity calc di 1.2103103/.0203252 *Bingo.... the F stat for the regression